<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

    <title>欢迎来到Alone在线购书商城后台</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!-- 如果出现没有效果的情况直接检查是否是因为路径的问题 -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/easyui/themes/default/easyui.css"
          type="text/css"></link>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/easyui/themes/icon.css" type="text/css"></link>
    <script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.easyui.min.js"></script>


    <script type="text/javascript">
        function reinitIframe() {
            var iframe = document.getElementById("_content");
            try {
                var bHeight = iframe.contentWindow.document.body.scrollHeight;
                var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
                var height = Math.max(bHeight, dHeight);
                iframe.height = height;
            } catch (ex) {
            }
        }

        window.setInterval("reinitIframe()", 200);
    </script>

</head>

<body class="easyui-layout">

<div data-options="region:'north',title:'欢迎您来到Alone在线购书商城',split:true,iconCls:'icon-search'" style="height:100px;">
    <%--引入通用的头部页面 --%>
    <%@include file="/jsp/admin/common/header.jsp" %>
</div>
<div data-options="region:'south',title:'版权信息',split:true" style="height:100px;text-align:center;">
    <br/>
    (C) Copyright 2019 yuanfeng All rights Reserved

</div>
<div data-options="region:'west',title:'图书操作',split:true" style="width:128px;">

    <br/>
    <a target="_content" class="easyui-linkbutton" data-options="iconCls:'icon-search'"
       href="${pageContext.request.contextPath }/admin/type?action=queryTypes" class="easyui-linkbutton"
       data-options="iconCls:'icon-search'">
        图书分类
    </a>
    <br/>
    <br/>
    <a target="_content" class="easyui-linkbutton" data-options="iconCls:'icon-add'"
       href="${pageContext.request.contextPath }/admin/book?action=toAdd">
        图书上架
    </a>
    <br/>
    <br/>
    <a target="_content" class="easyui-linkbutton" data-options="iconCls:'icon-save'" >
        图书管理
    </a>
    <br/>
    <br/>
    <a target="_content" class="easyui-linkbutton" data-options="iconCls:'icon-cut'" >
        发货管理
    </a>
</div>
<div data-options="region:'center',title:'书籍后台管理'" style="padding:5px;background:#CAE1FF;">
    <iframe id="_content" scrolling="auto" name="_content" src="" frameborder="0" width="800px" height="100%">
    </iframe>
</div>
</body>
</html>